package com.kalvin.kvf.modules.dy.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import com.kalvin.kvf.modules.dy.entity.Bloggers;
import com.kalvin.kvf.modules.dy.mapper.BloggersMapper;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 * @since 2023-11-12 16:33:52
 */
@Service
public class BloggersServiceImpl extends ServiceImpl<BloggersMapper, Bloggers> implements BloggersService {

    @Override
    public Page<Bloggers> listBloggersPage(Bloggers bloggers) {
        Page<Bloggers> page = new Page<>(bloggers.getCurrent(), bloggers.getSize());
        List<Bloggers> bloggerss = baseMapper.selectBloggersList(bloggers, page);
        return page.setRecords(bloggerss);
    }

}
